package cn.dm.service;

import cn.dm.pojo.DmUser;

public interface LocalUserService {


    /**
     * 根据条件查询用户信息(手机号或邮箱)
     * @return
     * @throws Exception
     */
    DmUser getDmUserListByMap(String phone) throws Exception;

    /**
     * 手机号注册
     * @param user
     * @throws Exception
     * @return
     */
    boolean registerUserByPhone(DmUser dmUser) throws Exception;

    /**
     * 根据短信验证码注册用户
     * @param dmUser
     * @param vscode
     * @return
     * @throws Exception
     */
    int userRegistration(DmUser dmUser,String vscode) throws Exception;


    DmUser findUserWeiXinById(String openId) throws Exception;

    Long createUser(DmUser user) throws Exception;
 }
